﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Stock.aspx.cs" Inherits="ProjectSem3.Admin.WebForm2" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
       
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
    <div class="grid_9">
        <h1 class="dashboard">
            warehouse
        </h1>
    </div>
 
    
    
    <div class="clear">
    </div>
     <div style="padding: 0px 0px 40px 20px ">
        <label style="float: left; width:100px">
          
            Product name:</label><div style="float: left; width: 160px">
                
             <asp:TextBox ID="txtProduct" runat="server"  
                ></asp:TextBox>
             <asp:AutoCompleteExtender ID="TextBox2_AutoCompleteExtender" runat="server" 
                 DelimiterCharacters="" Enabled="True" ServicePath="" 
                 TargetControlID="txtProduct" MinimumPrefixLength="1" 
                 ServiceMethod="GetCompletionList" ViewStateMode="Enabled">
             </asp:AutoCompleteExtender>
            </div>
            <div style="float:left"><asp:Button ID="btnClick" runat="server" Text="Search"
                 onclick="btnClick_Click" /></div>
         <asp:ToolkitScriptManager ID="MyToolkitScriptManager" runat="server">
         </asp:ToolkitScriptManager>
    </div>

   
    <asp:ListView ID="ListView1" runat="server" OnSelectedIndexChanged="ListView1_SelectedIndexChanged"
        OnSelectedIndexChanging="ListView1_SelectedIndexChanging" OnPagePropertiesChanging="ListView1_PagePropertiesChanging"
        OnItemUpdated="ListView1_ItemUpdated" OnItemUpdating="ListView1_ItemUpdating">
        <LayoutTemplate>
            <div class="portlet">
                <div class="portlet-content nopadding">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                            <tr>
                                <th width="40px" scope="col">
                                    ID
                                </th>
                                <th width="200px" scope="col">
                                    Name
                                </th>
                                <th width="40px" scope="col">
                                    View
                                </th>
                                <th scope="col">
                                    Date update
                                </th>
                                <th scope="col">
                                    Status
                                </th>
                                <th scope="col" width="150px">
                                    Quantity
                                </th>
                                <th scope="col">
                                    Options
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
                        </tbody>
                    </table>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <tr id="trlist" runat="server">
                <td>
                     <asp:HiddenField ID="lblID" runat="server" value='<%#Eval("StockProduct.ProductId")%>'/> 
                    <%# Eval("idnumber") %>
                </td>
                <td>
                    <%#Eval("StockProduct.Name")%>
                </td>
                <td>
                    <%#Eval("StockProduct.view")%>
                </td>
                <td>
                    <%#Eval("StockProduct.Dateupdate")%>
                    <asp:HiddenField ID="hdfDateInsert" runat="server" Value='<%# Eval("Datein") %>' />
                </td>
                <td>
                    <asp:CheckBox ID="CheckBox1" runat="server" Checked='<%#Eval("StockProduct.Status")%>' Enabled='false'/>
                  
                </td>
                <td>
                    <label style="float: left">
                        <%#Eval("Quantity") %></label>
                    <input type="text" runat="server" value="0" maxlength="4" style="float: right; width: 40px;
                        text-align: right" id="txtAmount"/>
                </td>
                <td>
                    <asp:LinkButton ID="detail" CommandName="select" runat="server">details</asp:LinkButton>
                    <asp:LinkButton ID="lbtnUpdate" CommandName="Update" runat="server">insert</asp:LinkButton>
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <div style="float:right;width:100%">
    <asp:DataPager ID="DataPager1" runat="server" PageSize="10" PagedControlID="ListView1">
        <Fields>
            <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowPreviousPageButton="true"
                ButtonType="Link" ShowNextPageButton="false" ShowLastPageButton="false" />
            <asp:NumericPagerField ButtonType="Link" />
            <asp:NextPreviousPagerField ShowFirstPageButton="false" ButtonType="Link" ShowPreviousPageButton="false"
                ShowNextPageButton="true" ShowLastPageButton="true" />
        </Fields>
    </asp:DataPager>
   
    </div>

  
</asp:Content>
